package com.dissertation.respository;

import com.dissertation.model.auth.User;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.Optional;

public interface UserRepository extends MongoRepository<User, String> {

    Optional<User> findByUniqueName( String username );

}
